<script setup lang="ts">
import { RouterLink, RouterView } from "vue-router";

</script>

<template>
<div>
  <!-- routerLink:导航链接组件 -->
   <RouterLink to="/">首页</RouterLink>
   <RouterLink to="/login">登录页面</RouterLink>


  <!-- 用于渲染路由组件 -->
  <RouterView />
</div>
</template>
<style>
  a{
    margin-right: 20px;
  }
</style>


